#include <stdio.h>
int main(void)
{
	int year, month, day, leap = 0;
	int sum = 0;
	printf("输入年月日");
	scanf_s("%d%d%d", &year, &month, &day);
	printf("%d年%d月%d日", year, month, day);
	if (year % 4 == 0 || year % 400 == 0 && year % 100 != 0)
	{
		leap = 1;
	}
	switch (month)
	{
	case(1):sum += 31;
	case(2):sum += leap + 28;
	case(3):sum += 31;
	case(4):sum += 30;
	case(5):sum += 31;
	case(6):sum += 30;
	case(7):sum += 31;
	case(8):sum += 31;
	case(9):sum += 30;
	case(10):sum += 31;
	case(11):sum += 30;
	case(12):sum += 31;
	}
	sum += day;
	printf("%d", sum);
	return 0;
}